<html>
  <body>
    <div>1</div>
    <script>
      let div1 = document.getElementsByTagName('div')[0];
      div1.innerText = 'time.geekbang';

      let div2 = document.getElementsByTagName('div')[1];
      div2.innerText = 'time.geekbang.com';
    </script>
    <div>test</div>
  </body>
</html>
